﻿@model iDMS.Models.Employee
@using MvcHtmlHelpers
@{
    ViewBag.Title = "Details";
}
<h3>
    Details</h3>
<fieldset>
    <legend>Employee</legend>
    <table @*style="width: auto"*@>
        <tr>
            <td>
                <div class="display-label">
                    Full Name</div>
                <div class="display-field">
                    @Html.DisplayFor(model => model.FullName)
                </div>
                <div class="display-label">
                    Name</div>
                <div class="display-field">
                    @Html.DisplayFor(model => model.Name)
                </div>
                <div class="display-label">
                    LastName</div>
                <div class="display-field">
                    @Html.DisplayFor(model => model.LastName)
                </div>
                <div class="display-label">
                    Gender</div>
                <div class="display-field">
                    @Html.DisplayFor(model => model.GenderLong)
                </div>
                <div class="display-label">
                    Department</div>
                <div class="display-field">
                    @Html.DisplayFor(model => model.Department.FullName2)
                </div>
                <div class="display-label">
                    Supervisor</div>
                <div class="display-field">
                     @ViewBag.Supervisor.FullNameDepartment
                </div>
                <div class="display-label">
                    Phone</div>
                <div class="display-field">
                    @Html.DisplayFor(model => model.Phone)
                </div>
                <div class="display-label">
                    Building</div>
                <div class="display-field">
                    @Html.DisplayFor(model => model.Building)
                </div>
                <div class="display-label">
                    Room</div>
                <div class="display-field">
                    @Html.DisplayFor(model => model.Room)
                </div>
                <div class="display-label">
                    LastModified</div>
                <div class="display-field">
                    @Html.DisplayFor(model => model.LastModified)
                </div>
            </td>
            <td valign="top">
                <span>@Html.UserImage(Model.Gender.ToString())</span>
            </td>
        </tr>
    </table>
</fieldset>


<p>
    @Html.ActionLink("Back to List", "Index", null, new { @class = "btl" })
    
        @Html.ActionLink("Edit", "Edit", new { id = Model.EmployeeID }, new { @class = "editLink" })

    
</p>
